﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MainTemplate.Master" AutoEventWireup="true" CodeBehind="AccountDetails.aspx.cs" Inherits="SmartCounters.AccountDetails" %>

<%@ Register Assembly="GMaps" Namespace="Subgurim.Controles" TagPrefix="cc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ScriptsAndStylesPlaceHolder" runat="server">
	<script type="text/javascript" src="/Scripts/UserDetails.js"></script>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="TitleContentPlaceHolder" runat="server">
Account Details
</asp:Content>

<asp:Content ID="AccountDetails" ContentPlaceHolderID="MainContentPlaceHolder" runat="server">
<asp:UpdatePanel ID="UserDetailsUpdatePanel" runat="server">
<ContentTemplate>
<asp:UpdateProgress ID="UpdatePanelProgress" runat="server" AssociatedUpdatePanelID="UserDetailsUpdatePanel">
<ProgressTemplate>
	<div style="position: fixed; text-align: center; height: 100%; width: 100%; top: 0; right: 0; left: 0; z-index: 9999999; background-color: #000000; opacity: 0.7;">
		<asp:Image ID="imgUpdateProgress" runat="server" ImageUrl="~/images/ajax-loader.gif" AlternateText="Loading ..." ToolTip="Loading ..." style="padding: 10px;position:fixed;top:45%;left:50%;" />
	</div>
</ProgressTemplate>
</asp:UpdateProgress>
	<fieldset id="AccountDetailsFieldset" class="AccountDetailsFieldset shadow">
	<legend>Account Details</legend>
		<asp:HiddenField ID="hdAccountID" Value="null" runat="server" />
		<div><asp:Label ID="lblCountry" runat="server">Country: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbCountry" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblCity" runat="server">City: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbCity" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblStreet" runat="server">Street: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbStreet" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblHouse" runat="server">House: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbHouse" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label ID="lblApartment" runat="server">Apartment: </asp:Label></div>
		<div><asp:TextBox class="TextBox" ID="tbApartment" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label Visible="false" ID="lblLongitude" runat="server">Longitude: </asp:Label></div>
		<div><asp:TextBox Visible="false" class="TextBox" ID="tbLongitude" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div><asp:Label Visible="false" ID="lblLatitude" runat="server">Latitude: </asp:Label></div>
		<div><asp:TextBox Visible="false" class="TextBox" ID="tbLatitude" TextMode="SingleLine" runat="server"></asp:TextBox></div>

		<div>
			<asp:Button class="Button" ID="btAdd" Text="Add Account" OnClick="AddAccount" runat="server"  />
			<asp:Button class="Button" ID="btUpdate" Text="Update Account" OnClick="UpdateAccount" runat="server"  />
			<asp:Button class="Button" ID="btCancel" Text="Cancel" OnClick="Cancel" runat="server"  />
		</div>
	</fieldset>
	
</ContentTemplate>
<Triggers>
	<asp:AsyncPostBackTrigger ControlID="btAdd" EventName="Click" />
	<asp:AsyncPostBackTrigger ControlID="btUpdate" EventName="Click" />
	<asp:AsyncPostBackTrigger ControlID="btCancel" EventName="Click" />
</Triggers>
</asp:UpdatePanel>

<cc1:GMap ID="GMapAccount" runat="server" Language="he" Visible="False"/>

</asp:Content>

